import groovy.xml.NamespaceBuilder

def ant = new AntBuilder()

def items = [
	[groupId:'jfree', artifactId:'jfreechart', version:'1.0.5'],
	[groupId:'jfree', artifactId:'jcommon', version:'1.0.9']
]

def mvn = NamespaceBuilder.newInstance(ant, 'antlib:org.apache.maven.artifact.ant')

// download artifacts
mvn.dependencies(filesetId:'artifacts') {
	items.each { dependency(it) }
}

// print out what we downloaded
ant.fileScanner {
	fileset(refid:'artifacts')
}.each {
	println it
}